aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/fund/[name]/withdraw/+server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-11-08 13:46:04 -0800
committerAdam Soltys <[email protected]>2023-11-11 00:04:22 -0800
commit8041f705373758940b9487ed5c4cd34bfb04ac16 (patch)
treea96ded4f227e157762d446e8d946a94cae861b0d /src/routes/(app)/fund/[name]/withdraw/+server.js
parent84022507dd5d5a03aedb986f0ff28c81a3bcaeec (diff)
downloadcoinos-ui-8041f705373758940b9487ed5c4cd34bfb04ac16.tar.gz
coinos-ui-8041f705373758940b9487ed5c4cd34bfb04ac16.zip
rename pot to fund
Diffstat (limited to 'src/routes/(app)/fund/[name]/withdraw/+server.js')
-rw-r--r--src/routes/(app)/fund/[name]/withdraw/+server.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/(app)/fund/[name]/withdraw/+server.js b/src/routes/(app)/fund/[name]/withdraw/+server.js
new file mode 100644
index 00000000..0f9a23f3
--- /dev/null
+++ b/src/routes/(app)/fund/[name]/withdraw/+server.js
@@ -0,0 +1,6 @@
+import { json } from '@sveltejs/kit';
+import { auth, post } from '$lib/utils';
+
+export async function POST({ cookies, request }) {
+ return json(await post('/take', await request.json(), auth(cookies)));
+}